<?php
/*
	if(!empty($navigationBreadcrumbData)) {
		$breadcrumbNav = '<a href="'.SITE_WEBROOT.'">Каталог начало</a> ';

		for($i = 0, $navigationBreadcrumbDataSize = (count($navigationBreadcrumbData) - 1);
				$i < $navigationBreadcrumbDataSize;
				$i++) {
			$currentLink = $navigationBreadcrumbData[$i][0];
			$currentTitle = $navigationBreadcrumbData[$i][1];

			if($i != 0) {
				$breadcrumbNav .= ' » <a href="/'.$currentLink.'">'.htmlspecialchars($currentTitle).'</a>';
			} else {
				$breadcrumbNav .= '» <a href="/'.$currentLink.'">'.htmlspecialchars($currentTitle).'</a>';
			}
		}
		$breadcrumbNav .= ' » '.$navigationBreadcrumbData[$navigationBreadcrumbDataSize][1];

		echo $breadcrumbNav;
	}
*/
//pr($navigationBreadcrumbData);

if (!empty($navigationBreadcrumbData) && !isset($this->params['named']['ind']) && empty($this->params['named']['ind']) ){
  $breadcrumbNav = '<a href="'.SITE_WEBROOT.'">Каталог начало</a> ';

  $cnt = count($navigationBreadcrumbData);
  foreach($navigationBreadcrumbData as $k => $it){
    $url = str_replace('//', '/', $it['url']);
    if ($k == $cnt-1)
      $breadcrumbNav .= ' » '.htmlspecialchars($it['name']);
    else
      $breadcrumbNav .= ' » <a href="'.SITE_WEBROOT.$url.'">'.htmlspecialchars($it['name']).'</a>';
  }

  echo $breadcrumbNav;
}

?>